bindOffscreen

fun bindOffscreen(@IntRange(from = 1) width: Int, @IntRange(from = 1) height: Int)

Binds offscreen context to the Engine. This should be used when the Engine is used without UI. Note that only one engine instance can be bound at a time. Calling bindOffscreen unbinds other engine instances.

Parameters

width

the width of the offscreen frames Engine.

height

the height of the offscreen frames Engine. The opposite of this method is unbind.